package com.honglv.pojo.vo;


import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * Description:分页和获取前四个路线所需要展示的路线部分信息
 * date: 2024/03/28
 * author:王铭杰
 */
@Data
@Slf4j
@NoArgsConstructor
public class RounteShowVO {

    //路线id
    private Long id;

    //路线标题
    private String name;

    //路线摘要
    private String summary;

    //路线图片
    private ArrayList<String> pictures;


    public void setPictures(String pictures) {
        this.pictures = new ArrayList<>(Arrays.asList(pictures.split(",")));
    }
}
